﻿using System.ComponentModel;
using System.Reflection;
using System.Windows.Forms;

namespace KD.Sms.UI
{
    public class MsgBox
    {
        public static void Show(UI.MsgType type, string msg)
        {
            switch (type)
            {
                case UI.MsgType.Information:
                    MessageBox.Show(msg, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    break;
                case UI.MsgType.Waring:
                    MessageBox.Show(msg, "系统告警", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                case UI.MsgType.Error:
                    MessageBox.Show(msg, "系统错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
                default:
                    break;
            }
        }
    }
}
